package club.emergency.wechat.question_collection.operate;

import club.emergency.wechat.model.question_collection.QuestionCollection;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Create with IntelliJ IDEA
 * Project Name: wechat
 * Package Name: club.emergency.wechat.question_collection.operate
 * Date: 2019/2/21
 *
 * @author: 快乐的小菌菌
 * Description:
 */
public interface QuestionCollectionOperate {

    /**
     * 新增试题收藏记录
     *
     * @param questionCollection pojo
     * @return 以字符串形式返回
     */
    @PostMapping("/question-collection-search-provider/save")
    String save(@RequestBody QuestionCollection questionCollection);

    /**
     * 删除试题记录（物理删除）
     *
     * @param staffId    人员id
     * @param questionId 试题id
     * @return 以字符串形式返回
     */
    @PostMapping("/question-collection-search-provider/remove")
    String remove(@RequestParam("staffId") Long staffId, @RequestParam("questionId") Long questionId);

}
